	//数据准备
	/* S - 首页 */

	//收藏数据
	var colls = new JSONArray();

	var coll1 = new JSONObject();
	coll1.put("id", 0000);
	colls.add(coll1);

	var coll2 = new JSONObject();
	coll2.put("id", 0001);
	colls.add(coll2);

	var coll3 = new JSONObject();
	coll3.put("id", 0002);
	colls.add(coll3);

	//足迹数据
	var foots = new JSONArray();

	var foot1 = new JSONObject();
	foot1.put("id", 0005);
	foots.add(foot1);

	var foot2 = new JSONObject();
	foot2.put("id", 0006);
	foots.add(foot2);

	var foot3 = new JSONObject();
	foot3.put("id", 0007);
	foots.add(foot3);

	//购物车数据
	var cars = new JSONArray();
	var car1 = new JSONObject();
	car1.put("id", 0007);
	car1.put("size", "L");
	car1.put("count", 1);
	cars.add(car1);

	var car2 = new JSONObject();
	car2.put("id", 0008);
	car2.put("size", "L");
	car2.put("count", 1);
	cars.add(car2);

	var car3 = new JSONObject();
	car3.put("id", 0009);
	car3.put("size", "S");
	car3.put("count", 2);
	cars.add(car3);

	var car4 = new JSONObject();
	car4.put("id", 0010);
	car4.put("size", "XL");
	car4.put("count", 1);
	cars.add(car4);

	//全部数据
	var allGoodsDataStr = '['+
		'{"id":0000, "img":"image/goods/goods1.jpg", "name":"潮流卫衣", "quantity":"", "price":"189"},'+
		'{"id":0001, "img":"image/goods/goods2.jpg", "name":"潮流提包", "quantity":"", "price":"688"},'+
		'{"id":0002, "img":"image/goods/goods3.jpg", "name":"潮流板鞋", "quantity":"", "price":"666"},'+
		'{"id":0003, "img":"image/goods/goods4.jpg", "name":"黑白条纹打底衫", "quantity":"", "price":"288"},'+
		'{"id":0004, "img":"image/goods/goods5.jpg", "name":"七分袖圆领系带针织衫", "quantity":"", "price":"399"},'+
		'{"id":0005, "img":"image/goods/goods6.jpg", "name":"荷叶边不规则半身裙", "quantity":"", "price":"266"},'+
		'{"id":0006, "img":"image/goods/goods7.jpg", "name":"圆领长袖镂空钩花针织", "quantity":"", "price":"299"},'+
		'{"id":0007, "img":"image/goods/goods8.jpg", "name":"镂空圆领九分袖", "quantity":"", "price":"266"},'+
		'{"id":0008, "img":"image/goods/goods9.jpg", "name":"圆领无袖针织连衣裙", "quantity":"", "price":"399"},'+
		'{"id":0009, "img":"image/goods/goods10.jpg", "name":"喇叭长袖圆领蕾丝连衣", "quantity":"", "price":"266"},'+
		'{"id":0010, "img":"image/goods/goods11.jpg", "name":"V领粗条纹针织连衣裙", "quantity":"", "price":"266"},'+
		'{"id":0011, "img":"image/goods/goods12.jpg", "name":"条纹衬衫时尚连衣裙", "quantity":"", "price":"299"},'+
		'{"id":0012, "img":"image/goods/goods13.jpg", "name":"蕾丝拼接碎花雪纺衫", "quantity":"", "price":"189"},'+
		'{"id":0013, "img":"image/goods/goods14.jpg", "name":"浅色修身牛仔裤", "quantity":"", "price":"199"},'+
		'{"id":0014, "img":"image/goods/goods15.jpg", "name":"性感露背吊带", "quantity":"", "price":"266"},'+
		'{"id":0015, "img":"image/goods/goods16.jpg", "name":"开叉高腰阔腿裤", "quantity":"", "price":"288"},'+
		'{"id":0016, "img":"image/goods/goods17.jpg", "name":"不规则开叉小脚裤", "quantity":"", "price":"499"},'+
		'{"id":0017, "img":"image/goods/goods18.jpg", "name":"V领喇叭袖雪纺连衣裙", "quantity":"", "price":"658"},'+
		'{"id":0018, "img":"image/goods/goods19.jpg", "name":"A字阔腿裤休闲裤", "quantity":"", "price":"289"},'+
		'{"id":0019, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0020, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0021, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0022, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0023, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0024, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0025, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0026, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0027, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0028, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0029, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0030, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0031, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0032, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0033, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0034, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0035, "img":"", "name":"", "quantity":"", "price":""},'+
		'{"id":0036, "img":"", "name":"", "quantity":"", "price":""}'+
	']';
	
	var allGoodsDatas = $$.json.toObject(allGoodsDataStr);

	var goodsIdAndIndexMap = new Map();

	var it = allGoodsDatas.itarator();
	while(it.hasNext()){
		var item = it.next();
		goodsIdAndIndexMap.put(item.get("id"), item);
	}

	function getGoodsItemById(id){
		console.log(full4(id));
		return goodsIdAndIndexMap.get(full4(id));
	}
	
	/* E - 首页 */

	/* S - 店铺页面 */

	
	var merchantDataStr = '['+
		'{"id":0000},'+
		'{"id":0001},'+
		'{"id":0002},'+
		'{"id":0003},'+
		'{"id":0004},'+
		'{"id":0005},'+
		'{"id":0006},'+
		'{"id":0007},'+
		'{"id":0008},'+
		'{"id":0009},'+
		'{"id":0010},'+
		'{"id":0011},'+
		'{"id":0012},'+
		'{"id":0013},'+
		'{"id":0014},'+
		'{"id":0015},'+
		'{"id":0016},'+
		'{"id":0017},'+
		'{"id":0018}'+
	']';
	var merchantData = $$.json.toObject(merchantDataStr);
	
	/* E - 店铺页面 */